/*
** 2707.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Fri Oct  3 15:42:21 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/* #include "2707.h" */
#include <stdio.h>
#include <math.h>

int main()
{
     int a1, b1, a2, b2, tmp;
     float r1, r2;		/* ratio */

     while(scanf("%d%d%d%d", &a1, &b1, &a2, &b2)){
	  if (a1 + b1 + a2 + b2 == 0) break;
	  if (a1 < b1){		/* swap */
	       tmp = b1;
	       b1 = a1;
	       a1 = tmp;
	  }
	  if (a2 < b2){		/* swap */
	       tmp = b2;
	       b2 = a2;
	       a2 = tmp;
	  }
	  r1 = (float)a2/(float)a1;
	  r2 = (float)b2/(float)b1;
	  if (r1 < r2)
	       r2 = r1;
	  if (r2 > 1.0)
	       printf("100%%\n");
	  else
	       printf("%.lf%%\n", floor(r2*100));
     }
     return 0;
}

	       
